Page({
      data:{
        fei:'',
        feiban:'',
        iset:false
      },
      switchchange(e){
        this.data.iset = e.detail.value
          this.setData({
            fei:'',
            feiban:''
          })
        },
      formsubmit(e){
        console.log(e)
        let bd = Number(e.detail.value.property)
        let fei = 0
        let feiban = 0
        if(bd<=10000){
          fei = 50
        }else if(bd>10000&&bd<=100000){
          fei = (50+(bd-10000)*0.025)
        }else if(bd>100000&&bd<=200000){
          fei = (2300+(bd-100000)*0.02)
        }else if(bd>200000&&bd<=500000){
          fei = (4300+(bd-200000)*0.015)
        }else if(bd>500000&&bd<=1000000){
          fei = (8800+(bd-500000)*0.01)
        }else if(bd>1000000&&bd<=2000000){
          fei = (13800+(bd-1000000)*0.009)
        }else if(bd>2000000&&bd<=5000000){
          fei = (22800+(bd-2000000)*0.008)
        }else if(bd>5000000&&bd<=10000000){
          fei = (46800+(bd-5000000)*0.007)
        }else if(bd>10000000&&bd<=20000000){
          fei = (81800+(bd-10000000)*0.006)
        }else if(bd>20000000){
          fei = (141800+(bd-20000000)*0.005)
        }
        if(this.data.iset) fei*=2
        feiban = fei/2
        fei = fei.toFixed(2)
        feiban =feiban.toFixed(2)    
        this.setData({
          fei,feiban
        })
      },
        formreset(){
          this.setData({
            fei:' ',
            feiban:' ',
            iset:false
          })
        }
    })